How to set multisites: same domain, different path, one ip address

How to set multisites: same domain, different path, one ip address

am 16.01.2010 14:29:31 von Jiongliang Zhang

--0016e64beb343c27b5047d481c00
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable

I have implement something like this:


mailman is here,



redmine is here.


so when I using mydomain:80 and mydomain:8080, I can request both of them.
But now I have new reqirements, I hope using mydomain/mailman and
mydomain/redmine
to identify them, just like:

http://mydomain/mailman
http://mydomain/redmine

on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain

mailman path: /var/lib/mailman/*
redmine path: /var/lib/redmine/*

How can I do this. (I'm newbee on apache)

---
Best regards£¡
Thanks
Jiongliang Zhang

--0016e64beb343c27b5047d481c00
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable

I have implement something like this:

<virtualhost :80>
&nb=
sp;   mailman is here,
</virtualhost>

<virtua=
lhost :8080>
    redmine is here.
</virtualhost&=
gt;

so when I using mydomain:80 and mydomain:8080, I can request bot=
h of them.

But now I have new reqirements, I hope using mydomain/mailman and mydomain/=
redmine
to identify them, just like:



    http://mydomain/mail=
man


    http://mydomain/redm=
ine




on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain




mailman path:  /var/lib/mailman/*

redmine path: /var/lib/redmine/*



How can I do this. (I'm newbee on apache)

---
Best regards=A3=
=A1
Thanks
Jiongliang Zhang


--0016e64beb343c27b5047d481c00--

Re: How to set multisites: same domain, different path,

am 16.01.2010 14:51:18 von Frank Gingras

2010/1/16 Jiongliang Zhang :
> I have implement something like this:
>
>
> mailman is here,
>

>
>
> redmine is here.
>

>
> so when I using mydomain:80 and mydomain:8080, I can request both of them=
..
> But now I have new reqirements, I hope using mydomain/mailman and
> mydomain/redmine
> to identify them, just like:
>
> http://mydomain/mailman
> http://mydomain/redmine
>
> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain
>
> mailman path: /var/lib/mailman/*
> redmine path: /var/lib/redmine/*
>
> How can I do this. (I'm newbee on apache)
>
> ---
> Best regards£¡
> Thanks
> Jiongliang Zhang
>

Use an alias:

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias

Frank

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to set multisites: same domain, different path,

am 16.01.2010 15:31:47 von Jiongliang Zhang

--0016e648f67ee672c8047d48faac
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable

2010/1/16 Francois Gingras

> 2010/1/16 Jiongliang Zhang :
> > I have implement something like this:
> >
> >
> > mailman is here,
> >

> >
> >
> > redmine is here.
> >

> >
> > so when I using mydomain:80 and mydomain:8080, I can request both of
> them.
> > But now I have new reqirements, I hope using mydomain/mailman and
> > mydomain/redmine
> > to identify them, just like:
> >
> > http://mydomain/mailman
> > http://mydomain/redmine
> >
> > on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain
> >
> > mailman path: /var/lib/mailman/*
> > redmine path: /var/lib/redmine/*
> >
> > How can I do this. (I'm newbee on apache)
>
>


> Use an alias:
>
> http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
>
> Frank
>

I tried the alias, but it doesn't work. Is Alias just for filesystem? But
this requirement
should be set to mapping web site, a web site may be started in a
virtualhost tag, so, the
alias cannot map to http://.... or servername value? any ideas?

--=20
Best regards£¡
Thanks
Jiongliang Zhang

--0016e648f67ee672c8047d48faac
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable



2010/1/16 Francois Gingras ltr"><francois.gingras@gma=
il.com
>

left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left=
: 1ex;">
2010/1/16 Jiongliang Zhang <zhn=
zhong521@gmail.com
>:

> I have implement something like this=
:

>

> <virtualhost :80>

>     mailman is here,

> </virtualhost>

>

> <virtualhost :8080>

>     redmine is here.

> </virtualhost>

>

> so when I using mydomain:80 and mydomain:8080, I can request both of t=
hem.

> But now I have new reqirements, I hope using mydomain/mailman and

> mydomain/redmine

> to identify them, just like:

>

>     ht=
tp://mydomain/mailman


>     ht=
tp://mydomain/redmine


>

> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain<=
br>
>

> mailman path:  /var/lib/mailman/*

> redmine path: /var/lib/redmine/*

>

> How can I do this. (I'm newbee on apache)




 
l_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0p=
t 0pt 0.8ex; padding-left: 1ex;">

Use an alias:



t=3D"_blank">http://httpd.apache.org/docs/2.2/mod/mod_alias. html#alias<=
br>


Frank

I tried the alias, but it doesn't work. =
Is Alias just for filesystem? But this requirement
should be set to map=
ping web site, a web site may be started in a virtualhost tag, so, the

alias cannot map to http://.... or servername value? any ideas?
"all">

--
Best regards£¡
Thanks
Jiongliang Zha=
ng


--0016e648f67ee672c8047d48faac--

Re: How to set multisites: same domain, different path,

am 18.01.2010 10:55:32 von Krist van Besien

2010/1/16 Jiongliang Zhang :

> so when I using mydomain:80 and mydomain:8080, I can request both of them=
..
> But now I have new reqirements, I hope using mydomain/mailman and
> mydomain/redmine
> to identify them, just like:
>
>   =A0 http://mydomain/mailman
>   =A0 http://mydomain/redmine
>
> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain
>
> mailman path:=A0 /var/lib/mailman/*
> redmine path: /var/lib/redmine/*
>
> How can I do this. (I'm newbee on apache)

What you need to know first is that:

http://mydomain/mailman
http://mydomain/redmine

Are just two paths on one server instance. So forget about
virtualhosts, you don't need them. Just get your http://mydomain
server working first.

Then once that works you can add aliase to your config. So it would
look like this:


Alias /mailman /var/lib/mailman
Alias /redmine /var/lib/redmine


Krist

--=20
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to set multisites: same domain, different path,

am 19.01.2010 01:55:00 von Jiongliang Zhang

--0016e687869461d709047d79ebfa
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable

2010/1/18 Krist van Besien

> 2010/1/16 Jiongliang Zhang :
>
> > so when I using mydomain:80 and mydomain:8080, I can request both of
> them.
> > But now I have new reqirements, I hope using mydomain/mailman and
> > mydomain/redmine
> > to identify them, just like:
> >
> > http://mydomain/mailman
> > http://mydomain/redmine
> >
> > on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain
> >
> > mailman path: /var/lib/mailman/*
> > redmine path: /var/lib/redmine/*
> >
> > How can I do this. (I'm newbee on apache)
>
> What you need to know first is that:
>
> http://mydomain/mailman
> http://mydomain/redmine
>
> Are just two paths on one server instance. So forget about
> virtualhosts, you don't need them. Just get your http://mydomain
> server working first.
>
> Then once that works you can add aliase to your config. So it would
> look like this:
>
>
> Alias /mailman /var/lib/mailman
> Alias /redmine /var/lib/redmine
>

Many thanks first.

It works for me at first link, but after I enter into the web site, just
like http://mydomain/redmine, all links cann't change to
http://mydomain/redmine/* as their header, for example:

Redmine website has path : /login, and the normal way (no Alias), the web
space is: http://mydomain/login, when I use
Alias directive, the homepage, can use http://mydomain/redmine to access,
but the /login, cann't change to
http://mydomain/redmine/login, it's still http://mydomain/login. Can I
change its links by Apache?

PS: Redmine (http://www.redmine.org), is deployed: Ubuntu8.04 server +
Apache2.2 Proxy + Mongrel Cluster.

--=20
Best regards£¡
Thanks
Jiongliang Zhang

--0016e687869461d709047d79ebfa
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable



2010/1/18 Krist van Besien ltr"><krist.vanbesien@gmail=
..com
>

ft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: =
1ex;">
2010/1/16 Jiongliang Zhang < 521@gmail.com">zhnzhong521@gmail.com>:



> so when I using mydomain:80 and mydomain:8080,=
I can request both of them.

> But now I have new reqirements, I hope using mydomain/mailman and

> mydomain/redmine

> to identify them, just like:

>

>     k">http://mydomain/mailman

>     k">http://mydomain/redmine

>

> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain<=
br>
>

> mailman path:  /var/lib/mailman/*

> redmine path: /var/lib/redmine/*

>

> How can I do this. (I'm newbee on apache)



What you need to know first is that:

Are just two paths on one server instance. So forget about

virtualhosts, you don't need them. Just get your main" target=3D"_blank">http://mydomain

server working first.



Then once that works you can add aliase to your config. So it would

look like this:





Alias /mailman /var/lib/mailman

Alias /redmine /var/lib/redmine

Many thanks first.=


It works for me at first link, but after I enter into the web site,=
just like ,=
all links cann't change to

as thei=
r header, for example:

Redmine website has path : /login, and the no=
rmal way (no Alias), the web space is: ht=
tp://mydomain/login
, when I use

Alias directive, the homepage, can use =
http://mydomain/redmine
to access, but the /login, cann't change to=

http://mydomain/redmine/logi=
n
, it's still http://mydomain/log=
in
. Can I change its links by Apache?


PS: Redmine (http://www.redmine.org<=
/a>), is deployed: Ubuntu8.04 server + Apache2.2 Proxy + Mongrel Cluster. r>

--
Best regards£¡
Thanks
Jiongliang Zhang r>

--0016e687869461d709047d79ebfa--